import http from "../../request.js";

//查询订单列表
function findAllOrders() {
	return http({
		url:'/lejuClient/order/findAllOrders',
	})
}

//取消订单时间，取消订单后,不会删除订单
function cancelOrder(orderId) {
	return http({
		url:`/lejuClient/order/cancelOrder/${orderId}`,
		method:'post'
	})
}

// 确认收货
function receiveDone(data) {
	return http({
		url:`/lejuClient/order/receiveDone`,
		method:'post',
		data
	})
}

// 获取退单列表

function orderReturnApplys(){
	return http({
		url:`/lejuClient/orderReturn/orderReturnApplys`,
	})
}


export { findAllOrders , cancelOrder , receiveDone , orderReturnApplys }